﻿@model IEnumerable<Pyramid.Models.Role>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="@Url.Action("Create")" target="dialog" mask="true" title="添加角色"><span>添加</span></a></li>
			<li><a class="edit" href="@Url.Action("Edit", new {id = "{id}"})" target="dialog" mask="true" title="修改角色"><span>修改</span></a></li>
			<li><a class="delete" href="@Url.Action("Delete", new {id = "{id}"})" target="ajaxTodo" title="确定要删除吗？"><span>删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layouth="138">
		<thead>
			<tr>
				<th width="120">@Html.DisplayNameFor(model => model.RoleId)</th>
				<th width="250">@Html.DisplayNameFor(model => model.RoleName)</th>
				<th>@Html.DisplayNameFor(model => model.Description)</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var item in Model)
			{
				<tr target="id" rel="@item.RoleId">
					<td>
						@item.RoleId
					</td>
					<td>
						@item.RoleName
					</td>
					<td>
						@item.Description
					</td>
				</tr>
			}
		</tbody>
	</table>
</div>